package com.titan.single.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.titan.single.dao.UserMapper;
import com.titan.single.entity.User;
import com.titan.single.service.UserService;
import com.titan.single.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService {

    @Autowired
    private UserMapper userMapper;



    @Override
    public IPage<User> selectPageByUserVo(UserVo userVo) {
        Page page = new Page<>(userVo.getPageNum(), userVo.getPageSize());
        return userMapper.selectPageByUserVo(page,userVo);
    }

    @Override
    public boolean saveOrUpdateUser(UserVo req) {

     return false;
    }

    @Override
    public void deleteUser(UserVo req) {

    }




}
